package com.xyz.graph.service;

import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource;

import java.util.ArrayList;
import java.util.HashMap;

public interface GSelectService {

    /**
     * 只有关系的实体扩展
     * @param step
     * @param relationTypes
     * @param
     * @param field
     * @param id
     * @return
     */
    HashMap<String, ArrayList<HashMap<String,String>>> entityExtend(GraphTraversalSource g, String id, int step,
                                                                    String[] relationTypes,
                                                                    String field, boolean alldata);


}
